package com.huangdada.hfweather.service;

import com.huangdada.hfweather.bean.SJWeather;
import com.huangdada.hfweather.bean.Weather;

import java.util.List;

/**
 * @Description: 天气获取业务逻辑接口
 * @PROJECT_NAME: hf-weather
 * @CLASS_NAME:
 * @Author: huanglibin
 * @Date: 2020-03-30 21:36
 * @Version: 1.0
 */
public interface WeatherService {
    /**
     * 获取实况天气列表
     * @return
     */
    public List<Weather> queryWeatherAll();

    /**
     * 保存获取天气实况任务信息
     * @param weather
     * @return
     */
    Integer saveWeatherInfo(Weather weather);


    Integer saveSJWeatherInfo(SJWeather weather);

    Integer updateSJWeatherInfo(SJWeather weather);

    SJWeather getWeatherByAreaidAndNamecn(String areaid, String namecn);
}
